﻿
using System;
using System.Xml;
using System.Xml.Serialization;
namespace SpeedSearch
{
    [Serializable]
    public class Virtual
    {
        [XmlIgnore]
        public bool IsVirtualized;

        [XmlIgnore]
        public bool AutoVirtualization;

        [XmlElement("RootPath")]
        public string RootPath { get; set; }

        [XmlElement("IsVirtualized")]
        public string _IsVirtualized
        {
            get { return this.IsVirtualized ? "1" : "0"; }
            set { this.IsVirtualized = XmlConvert.ToBoolean(value); }
        }

        [XmlElement("AutoVirtualization")]
        public string _AutoVirtualization
        {
            get { return this.AutoVirtualization ? "1" : "0"; }
            set { this.AutoVirtualization = XmlConvert.ToBoolean(value); }
        }

        public Virtual()
        {
        }
    }
}
